import  'dart:io';

main() async {
  //往文件中写出日志
  /*
  var f = File('./runtime.log');

  await f.writeAsString(DateTime.now().toString()+': user login');
  
  print('日志文件写出完成');
  */


  //从日志文件中读取内容
  var f = File('./runtime.log');

  String data = await f.readAsString();
  print(data);
}
